import React, { useEffect } from 'react'
import { useRoutes } from 'react-router-dom'
import routers from './routers'
import { Provider } from 'react-redux'
import store from './store'


export default function App() {

  const outlet = useRoutes(routers)
  return (
    <Provider store={store}>
      {outlet}
    </Provider>
  )
}
